#ifndef TEXTUREPOOL_H
#define TEXTUREPOOL_H

#include <queue>
#include <GL/glfw.h>

namespace core {

	class TextureIdPool
	{
	public:
		TextureIdPool( GLuint count );
		~TextureIdPool();

		GLuint Take();
		void Put( GLuint texId );

	private:
		GLuint* m_textures;
		int m_count;
		std::queue<GLuint> m_freeTextures;
	};
}

#endif
